<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改目标检测训练任务')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-detectionTrainMission-edit" th:object="${detectionTrainMission}">
        <input id="id" name="id" th:field="*{id}"  type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label">训练任务名称：</label>
            <div class="col-sm-8">
                <input id="trainMissionName" name="trainMissionName" th:field="*{trainMissionName}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">模型名称：</label>
            <div class="col-sm-8">
                <input id="modelName" name="modelName" th:field="*{modelName}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">训练集名称：</label>
            <div class="col-sm-8">
                <input id="datasetTrainName" name="datasetTrainName" th:field="*{datasetTrainName}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">验证集名称：</label>
            <div class="col-sm-8">
                <input id="datasetValName" name="datasetValName" th:field="*{datasetValName}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">batch size：</label>
            <div class="col-sm-8">
                <input id="batchSize" name="batchSize" th:field="*{batchSize}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">epoch：</label>
            <div class="col-sm-8">
                <input id="epoch" name="epoch" th:field="*{epoch}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">训练状态：</label>
            <div class="col-sm-8">
                <input id="status" name="status" th:field="*{status}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">早停：</label>
            <div class="col-sm-8">
                <input id="earlyStop" name="earlyStop" th:field="*{earlyStop}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">学习率：</label>
            <div class="col-sm-8">
                <input id="opLr" name="opLr" th:field="*{opLr}" class="form-control" type="text">
            </div>
        </div>
<!--        <div class="form-group">-->
<!--            <label class="col-sm-3 control-label">归属用户id：</label>-->
<!--            <div class="col-sm-8">-->
<!--                <input id="userId" name="userId" th:field="*{userId}" class="form-control" type="text">-->
<!--            </div>-->
<!--        </div>-->
<!--        <div class="form-group">-->
<!--            <label class="col-sm-3 control-label">训练集id：</label>-->
<!--            <div class="col-sm-8">-->
<!--                <input id="datasetTrainId" name="datasetTrainId" th:field="*{datasetTrainId}" class="form-control" type="text">-->
<!--            </div>-->
<!--        </div>-->
<!--        <div class="form-group">-->
<!--            <label class="col-sm-3 control-label">验证集id：</label>-->
<!--            <div class="col-sm-8">-->
<!--                <input id="datasetValId" name="datasetValId" th:field="*{datasetValId}" class="form-control" type="text">-->
<!--            </div>-->
<!--        </div>-->
<!--        <div class="form-group">-->
<!--            <label class="col-sm-3 control-label">所选模型id：</label>-->
<!--            <div class="col-sm-8">-->
<!--                <input id="modelId" name="modelId" th:field="*{modelId}" class="form-control" type="text">-->
<!--            </div>-->
<!--        </div>-->
<!--        <div class="form-group">-->
<!--            <label class="col-sm-3 control-label">创建时间：</label>-->
<!--            <div class="col-sm-8">-->
<!--                <input id="createTime" name="createTime" th:field="*{createTime}" class="form-control" type="text">-->
<!--            </div>-->
<!--        </div>-->
<!--        <div class="form-group">-->
<!--            <label class="col-sm-3 control-label">开始时间：</label>-->
<!--            <div class="col-sm-8">-->
<!--                <input id="beginTime" name="beginTime" th:field="*{beginTime}" class="form-control" type="text">-->
<!--            </div>-->
<!--        </div>-->
<!--        <div class="form-group">-->
<!--            <label class="col-sm-3 control-label">结束时间：</label>-->
<!--            <div class="col-sm-8">-->
<!--                <input id="endTime" name="endTime" th:field="*{endTime}" class="form-control" type="text">-->
<!--            </div>-->
<!--        </div>-->
<!--        <div class="form-group">-->
<!--            <label class="col-sm-3 control-label">添加到队列的时间：</label>-->
<!--            <div class="col-sm-8">-->
<!--                <input id="timeToQueue" name="timeToQueue" th:field="*{timeToQueue}" class="form-control" type="text">-->
<!--            </div>-->
<!--        </div>-->
<!--        <div class="form-group">-->
<!--            <label class="col-sm-3 control-label">是否公开：</label>-->
<!--            <div class="col-sm-8">-->
<!--                <input id="isPublic" name="isPublic" th:field="*{isPublic}" class="form-control" type="text">-->
<!--            </div>-->
<!--        </div>-->
<!--        <div class="form-group">-->
<!--            <label class="col-sm-3 control-label">是否有预训练权重：</label>-->
<!--            <div class="col-sm-8">-->
<!--                <input id="isWeight" name="isWeight" th:field="*{isWeight}" class="form-control" type="text">-->
<!--            </div>-->
<!--        </div>-->
    </form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript">
    var prefix = ctx + "detection/detectionTrainMission";
    $("#form-detectionTrainMission-edit").validate({
        rules:{
            xxxx:{
                required:true,
            },
        },
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-detectionTrainMission-edit').serialize());
        }
    }
</script>
</body>
</html>
